//
//  User.h
//  OCFrame
//
//  Created by hfzhangzhang on 2017/2/22.
//  Copyright © 2017年 hfzhangzhang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface User : ZZBaseModel

@property (nonatomic, strong) NSNumber *userId;
@property (nonatomic, strong) NSString *Tel;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, assign) Gender userGender;
@property (nonatomic, strong) NSString *birthday;
@property (nonatomic, strong) NSString *address;
@property (nonatomic, strong) NSNumber *height;
@property (nonatomic, strong) NSString *avatarUrl;
@property (nonatomic, strong) NSNumber *age;
@property (nonatomic, strong) NSString *idCard; //身份证号

@end


@interface UserSettings : NSObject

@property (nonatomic, assign) BOOL isLogin;/**<是否登录 */
@property (nonatomic, copy) NSString *accessToken;

@end


/**使用App的所有用户管理模块：针对可能同一个App要同时处理多个用户账号情况，还有用户登录和登出，数据保存等*/

@interface UserManager : NSObject

@property (nonatomic, strong) User    *user;
@property (nonatomic, strong) UserSettings  *setting;

ksingleH(UserManager)

@end

